package com.linln.modules.capital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.userule.domain
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.userule.domain
 * @Description: TODO
 * @date Date : 2020年12月30日 10:46
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tbl_shop_capital")
public class ShopCapital {
    /**
     * 店铺资金id
     */
    @TableId(value = "capital_id", type = IdType.UUID)
    private String capitalId;

    /**
     * 店铺id
     */
    @TableField(value = "shop_id")
    private String shopId;

    /**
     * 店铺总金额
     */
    @TableField(value = "total_amount")
    private Double totalAmount;

    /**
     * 店铺可用金额
     */
    @TableField(value = "available_amount")
    private Double availableAmount;

    /**
     * 冻结金额
     */
    @TableField(value = "frozen_amount")
    private Double frozenAmount;


    /**
     * 日收益
     */
    @TableField(exist = false, value = "day_profit")
    private Double dayProfit = 0D;


    /**
     * 月收益
     */
    @TableField(exist = false, value = "month_profit")
    private Double monthProfit = 0D;

    public static final String COL_CAPITAL_ID = "capital_id";

    public static final String COL_SHOP_ID = "shop_id";

    public static final String COL_TOTAL_AMOUNT = "total_amount";

    public static final String COL_AVAILABLE_AMOUNT = "available_amount";

    public static final String COL_FROZEN_AMOUNT = "frozen_amount";
}
